<?php
	//PHP可以触发HTTP基本身份验证
	//
	//
	//什么鬼东西看不懂！！！！！！！！！！！！！！！！！！！！！！
	
	if((substr($_SERVER['SERVER_SOFTWARE'], 0, 9) == 'Microsoft') && 
		(!isset($_SERVER['PHP_AUTH_USER'])) && 
		(!isset($_SERVER['PHP_AUTH_PW'])) &&
		(substr($_SERVER['HTTP_AUTHORIZATION'], 0, 6) == 'Basic')
		) {
		list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = 
			explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
		}